package com.platform.util;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

//启动tomcat加载此类
public class MyServletContextListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent arg0) {

	}

	public void contextInitialized(ServletContextEvent arg0) {
	System.out.println("加载webservice......");
	try {
		WebServiceFactory.create();
	}catch(Exception e) {
	System.out.println("加载webservice失败！......");
	e.printStackTrace();
	}
	}
	}